home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 010 / pcman.doc < prev    next >
Text File  |  1984-06-18  |  6KB  |  143 lines

  1.                                   PC MAN PATCH
  2.                                        by
  3.                                    Ken Sykes
  4.  
  5.     DISCLAIMER
  6.  
  7.     The patch shown below should only be applied to a backup of your PC MAN
  8.     disk.  I  am  not  liable  for any damage that may be induced from this
  9.     patch.
  10.  
  11.     NOTATIONS
  12.  
  13.     The following notations have been used:
  14.  
  15.          T x S y  - Track x Sector y (All disk operations use head 0)
  16.             $ n   - offset of byte in specified sector
  17.             L n   - logical disk address for DEBUG
  18.  
  19.     THE PATCH
  20.  
  21.     To use these patches, load in the specified sector, move to the offset,
  22.     make  the  change,  and  save  the  change.  I  will first give you the
  23.     addresses, then the steps to make mods using three disk editors: DEBUG,
  24.     NORTON  UTILITIES,  and  SNOOP  (see  end of article for description of
  25.     SNOOP).
  26.  
  27.          T1S2, $FD   - This byte tells PC MAN what screen to start on.
  28.          L10           Enter a value from 2-9 (PC MAN) subtracts one from
  29.                        this location to get the actual starting screen.
  30.  
  31.          T1S2, $F8   - This byte tells PC MAN how many men to start with
  32.          L10           each game.  Enter a value from 0 to 13, since PC MAN
  33.                        clutter the screen with men above 13.
  34.  
  35.     All examples below assume two drives, DOS 2.0
  36.  
  37.     Patches using DEBUG
  38.  
  39.          1.  Boot DOS
  40.          2.  Insert disk with DEBUG in drive A, PC MAN in drive B
  41.          3.  Type DEBUG <enter>
  42.          4.  Type L CS:0 1 10 1 <enter>
  43.          5.  To change starting screen:
  44.  
  45.                    Type E CS:FD n <enter> (n=starting screen)
  46.  
  47.              To change number of men:
  48.  
  49.                    Type E CS:F8 n <enter> (n=number of men)
  50.  
  51.          6.  Type W CS:0 1 10 1 <enter>
  52.          7.  Now boot PC MAN.  The changes are now in place.
  53.  
  54.     Patches using NORTON UTILITIES
  55.  
  56.          1. Boot DOS
  57.          2. Place NORTON UTILITIES in drive A, PC MAN in drive B
  58.          3. Type SM <enter>
  59.          4. Press F7
  60.          5. Type 1 <enter>
  61.          6. Type 2 <enter>
  62.          7. move cursor using arrow keys to correct offset (offset shown in
  63.             upper right corner).  Both of these patches are located near
  64.             the center of the screen.
  65.          8. make the changes by overtyping the desired values.
  66.          9. Press F9 when finished making changes
  67.         10. Press F10 to exit SecMod.
  68.         11. Boot PC MAN.
  69.  
  70.     Patches using SNOOP (this can run in 1.1 and still make changes)
  71.  
  72.          1. Boot DOS
  73.          2. Insert SNOOP in drive A, PCMAN in drive B.
  74.          3. Type SNOOP.
  75.          4. Press B.
  76.          5. Press Y.
  77.          6. Hit a key.
  78.          7. Press R.
  79.          8. Type 1 <enter>.
  80.          9. Type 2 <enter>.
  81.         10. Press M.
  82.         11. enter the offset
  83.         12. Press H.
  84.         13. enter new value.
  85.         14. Press N.
  86.         15. Type Y <enter>
  87.         16. Press T.
  88.         17. Boot PC MAN.
  89.  
  90.     DESCRIPTION OF SNOOP
  91.  
  92.     SNOOP is a Machine Language Disk utility that covers almost all the
  93.     functions desired by programmers.  This includes reading non-standard
  94.     disk formats, locating a string of hex or ascii characters, File and
  95.     disk maps, label changing, file attribute changing, etc.  The program
  96.     is menu driven, runs easily in 64K, and has fast screen I/O.  In my
  97.     opinion, SNOOP is better than Peter Norton's disk utilities (which were
  98.     written in PASCAL).  The only major item SNOOP is missing is file
  99.     recovery, though corporate rumors tell me file recovery could be in the
  100.     next version.  In light of its price ($40), SNOOP should be a very cost
  101.     effective tool.  Anyone interested in ordering SNOOP can write to the
  102.     following address:
  103.  
  104.                             OTTER CREEK SOFTWARE
  105.                             75 Hunting Lane
  106.                             Goode, Va.  24556
  107.  
  108.     FURTHER STUDY
  109.  
  110.     The patches I described just scratch the surface of the things you can
  111.     do to PC MAN, and other programs as well.  To explore PC MAN further, I
  112.     will explain how I found these patches.
  113.  
  114.     First, I loaded in QuadRam's ramdisk program (QM2.EXE) to take
  115.     advantage of the reset feature (CTRL-ALT-DEL won't clear memory).
  116.     After setting up a 32K print buffer, insert PC MAN and reboot.  After
  117.     the music stops, insert DOS 1.1 and reboot again.
  118.  
  119.     The screen will be in the Hi-Res mode, so don't be alarmed when no
  120.     cursor appears.  Enter Debug and press U <enter>.  And Behold! Here is
  121.     PC MAN in the unprotected form.  Now, any experienced assembly language
  122.     programmer can trace through the program and find out anything about PC
  123.     MAN.  Here are some offsets of little tidbits I have found:
  124.  
  125.     CS:6F0 - # of men
  126.     CS:2F8F - Controller used : (1=Keyboard, 0=Joystick)
  127.     CS:2FA0 - Sound byte (1 on, 0 off)
  128.     CS:360 - General area that takes care of decrementing men (I can make
  129.              the program not update the number of men on the screen, but
  130.              I haven't been able to make an infinite men patch.)
  131.  
  132.     To find the track and sector on the disk, I copied a few bytes
  133.     surrounding the desired location and used the locate command in SNOOP
  134.     to locate the track/sector/offset.
  135.  
  136.     There are many other possibilities.  I would be interested in hearing
  137.     from anybody that figures out an infinite man poke, or Placing PC MAN
  138.     on a hard disk.  They are entirely possible using the programs and
  139.     information I have given above.  I hope this sparks the curiosity of
  140.     fellow hackers.
  141.  
  142.                             Ken Sykes
  143. mation I have given above.  I ho